home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / menu / install.txt next >
Text File  |  1994-09-19  |  9KB  |  212 lines

  1.  
  2.  
  3.              INSTALLING LINUX
  4.  
  5.  
  6.  
  7. Before you can install Linux on your hard drive, you must partition your
  8. drive, and put a file system on it.  Roughly, this entails:
  9.  
  10.  - Write protect all disks (do or die).
  11.  - Boot Linux from disk a1
  12.  - For special install (eg: a mitsumi drive) hit ALT at LILO prompt 
  13.  - Log in as "install" for a menu driven install
  14.  
  15. or if you like, you can do a manual install by logging in as root and 
  16.  
  17.  - Create a Linux/Minix partition with "fdisk" on your hard drive and reboot.
  18.  - Make a file system on the partition with "mke2fs".
  19.  - Use "doinstall /dev/PART": PART is your partition (eg "doinstall /dev/hda2"
  20.    or "doinstall /dev/hda2 /dev/hda3 /usr /dev/hdb1 /usr/spool" if you wish to
  21.    have multiple partitions, with say /usr on a different partition.
  22.  
  23. Also "doinstall" will execute the script "doinst.sh" if it is found on PART.
  24. The final step will ask you to put a formatted floppy in the drive so the
  25. BOOT DISK can be prepared for you.  Have one ready ahead of time.  When the
  26. installation is complete, and you reboot from this floppy, you will be using
  27. Linux from your hard drive.   Later, you may wish to play with /usr/src/lilo
  28. to boot from your harddrive.  Note that if you have less than 4 Meg of RAM,
  29. you will likely not have enought memory to do the installation.  But you can
  30. try to make and activate a 4 Meg swap partition, prior to installation.
  31. For example, using /dev/hda3 for swap: "mkswap /dev/hda3 4096; swapon /dev/hda3"
  32. Before you begin, however, you may wish to type "menu" and browse the
  33. Instructions sub menu.  But make sure you exit "menu" before you start the
  34. install process.  You can also print files from there using "P", or you can
  35. use "cat README > /dev/lp1" or "cat README > /dev/lp2".
  36.  
  37. Your first task after the base install is done, should be to make backup
  38. copies of all of your disks  (Look in the "User Commands" menu). In fact,
  39. you should make sure all disks (except a1) are write protected before you start 
  40. the installation.  After the install, you can log on as "root".  Note the new
  41. Extended FS type 2, it is now the recommended file system to use, although
  42. the old minix fs can be used and is still the default.
  43. ----------------------------------------------------------------------------
  44.  
  45.         EXAMPLE PARTITIONING PROCEDURE
  46.  
  47. ... Put disk a1 in drive A: and reboot computer, 
  48.  
  49. /# fdisk
  50.  
  51. Command (m for help): n
  52. Command action
  53.    e   extended
  54.    p   primary partition (1-4)
  55. p
  56. Partition number (1-4): 2
  57. First cylinder (500-977): 500
  58. Last cylinder or +size or +sizeM or +sizeK (500-977): 977
  59.  
  60. Command (m for help): t
  61. Partition number (1-4): 1
  62. Hex code (type L to list codes): 81
  63.  
  64. Command (m for help): v
  65. Command (m for help): p
  66.  
  67. Disk /dev/hda: 5 heads, 17 sectors, 977 cylinders
  68. Units = cylinders of 85 * 512 bytes
  69.  
  70.    Device Boot  Begin   Start     End  Blocks   Id  System
  71. /dev/hda1           1       1     499   20000    4  DOS
  72. /dev/hda2           1       1       7   30000   81  Linux/MINIX
  73.  
  74. Command (m for help): w
  75. reboot now before doing anything else
  76. /#
  77. ...<after the reboot>
  78. /# mke2fs /dev/hda2 30000
  79. /# doinstall /dev/hda2
  80. ... Follow prompts, and insert disks as requested, then login as root.
  81. ----------------------------------------------------------------------------
  82.  
  83.         ADDITIONAL SLS INFORMATION
  84.  
  85. SLS is a binary mostly distribution (except for the kernel), and is broken 
  86. into multiple parts, or series, each of which is denoted by a letter followed 
  87. by the disk number as follows:
  88.  
  89.     a1-aN: The minimal base system
  90.     b1-bN: Base system extras, like man pages, emacs etc.
  91.     c1-cN: The compiler(s), gcc/g++/p2c/f2c
  92.     x1-xN: The X-windows distribution (+Tcl and Tk)
  93.     t1-tN: TeX (document processing)
  94.     s1-sN: Source code for critical system components
  95.     d1-dN: Documentation for various things
  96.  
  97. This scheme allows new disks to be added to the distribution without
  98. changing the disk numbering.  Also, the sysinstall program doesn't have to
  99. be changed when new disks are added as the last disk is marked by the
  100. presence of the file "install.end".  And when interviews is added, say as
  101. a new series "t", it can be installed with:
  102.  
  103.     sysinstall -series t
  104.  
  105. Highlights of the base are:  gcc/g++, emacs, kermit, elm/mail/uucp, gdb, sc
  106. (spreadsheet), man pages, groff, elvis, zip/zoo/lh and menu.  Highlights of
  107. X are: X, programmers libs, 75 dpi fonts, games (spider, tetris, xvier,
  108. chess, othello, xeyes, etc) and utilities like xmag, xmenu, xcolormap and
  109. ghostscript.  Approximate usage is as follows:
  110.  
  111. Tiny base system:       15 Meg  (Series 'a')
  112. Main base system:       45 Meg  (Series 'a', 'b' and 'c')
  113. Main base system + X11: 70 Meg  (Series 'a', 'b', 'c' and 'x')
  114. Full system:            90 Meg  (Series 'a', 'b', 'c', 'd', 's', 't' and 'x')
  115. ----------------------------------------------------------------------------
  116.  
  117.         LINUX SPECIFIC INFORMATION
  118.  
  119. Linux supports multiple VC's (virtual consoles).  You can switch from one 
  120. to the other using the "LEFT-ALT-FN" keys.  The right ALT key will not work.
  121. The console in linux more or less emulates a VT100.  So you can usually
  122. just use kermit to do your remote logins (even while doing the install :-).
  123. If you have a color monitor, you can even use color using the "setterm"
  124. utility, or just execute the "/etc/startcons" script to have all VC's set
  125. to default values.  If your screen gets garbled, you can use "reset".
  126. Up arrow recalls previous commands.   Use the "man" command to read the
  127. Linux manual pages, and the "man -k X" to list commands with the keyword
  128. "X" in the command description.  The system editor is "vi" but you might
  129. find "joe" easier to learn.
  130.  
  131. Never just power off your Linux system.  Instead type "sync", wait a sec,
  132. then powerdown or reboot.   If your disk gets in trouble (or every
  133. couple of weeks anyways) you may wish to run "fsck -av PART" where PART
  134. is your partition, to try to fix any problems.
  135.  
  136. Dos files can be accessed in one of two ways.  The first uses the mtools
  137. commands (mdir, mcopy, mtype, ...).  The file "/etc/mtools" may need
  138. some tweeking, especially if you use mformat.  The second method is to
  139. mount the dos disk/partition onto a directory.  eg: 
  140.  
  141.     mount -t msdos /dev/fd0 /user
  142.  
  143. Swapping can be set up of size SIZE, to a partition or to a file using:
  144.  
  145.     mkswap file SIZE
  146.     swapon file
  147.  
  148. Linux can be booted without the floppy using /usr/src/lilo.  Important 
  149. directories include:
  150.  
  151. "/etc"          - System configuration information
  152. "/usr/src"      - Miscellaneous packages.
  153. "/usr/X386/*"   - Xwindows stuff
  154. ----------------------------------------------------------------------------
  155.  
  156.         CONFIGURING X-WINDOWS
  157.  
  158. Getting X-windows to run on your PC can sometimes be a bit of a sobering 
  159. experience, mostly because there are so many types of video cards for the PC.  
  160. Linux X11 supports only VGA type video cards, but there are so many types of 
  161. VGA's that only certain ones are fully supported.  SLS comes with two Xwindows 
  162. servers.  The full color one, XFree86, supports some or all ET3000, ET4000, PVGA1,
  163. GVGA, Trident, S3, 8514, Accelerated cards, ATI plus and others.
  164.  
  165. The other server, XF86_Mono, should work with virtually any VGA card, but only 
  166. in monochrome mode.  Accordingly, it also uses less memory, and should be
  167. faster than the color one.  But of course it doesn't look as nice.
  168.  
  169. The bulk of the Xwindows configuration information is stored in the directory
  170. "/usr/X386/lib/X11/".  In particular, the file "Xconfig" defines the timings
  171. for the monitor and the video card.   By default, X windows is setup to use
  172. the color server, but you can switch to using the monochrome server x386mono, 
  173. if the color one gives you trouble, since it should support any standard vga.
  174. Essentially, this just means making /usr/X386/bin/X a link to it.
  175.  
  176. Just edit Xconfig to set the mouse device type and timings, and enter "startx".
  177. To figure out the clock timings to put in Xconfig.  README.modegen explains
  178. how you can use the spreadsheet to figure out your clock timings based upon
  179. your monitor specifications.  More information can be found in the dir